<template>
  <div>
    <h2>分类列表</h2>
    <div class="typeList">
      <Item v-for="item in itemData" :key="item.id" v-bind="item">
      </Item>
    </div>
  </div>
</template>

<script>
import Item from './components/Item.vue'
export default {
  components: {
    Item
  },
  data() {
    return {
      itemData: [
        {
          id: '1',
          content: ['火锅', '烧烤', '螺蛳粉'],
          title: '美食'
        },
        {
          id: '2',
          content: ['等你下课', '放学别走', '操场上见'],
          title: '音乐'
        },
        {
          id: '3',
          content: ['CF', 'DNF', 'CS'],
          title: '游戏'
        }
      ]
    }
  }
}
</script>

<style scoped>
.typeList {
  display: flex;
  justify-content: space-around;
}
</style>